//
//  LoginViewController.m
//  苏州银行
//
//  Created by rimi on 15/8/18.
//  Copyright (c) 2015年 IOS. All rights reserved.
//

#import "LoginViewController.h"

@interface LoginViewController ()

@end

@implementation LoginViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    UIImageView *viewMoveUp = [[UIImageView alloc]initWithFrame:self.view.bounds];
    viewMoveUp.image = [UIImage imageNamed:@"上.png"];
    [self.view addSubview:viewMoveUp];
    
    UIImageView *viewMoveleft = [[UIImageView alloc]initWithFrame:self.view.bounds];
    viewMoveleft.image = [UIImage imageNamed:@"左.png"];
    [self.view addSubview:viewMoveleft];
    
    UIImageView *viewMoveRight = [[UIImageView alloc]initWithFrame:self.view.bounds];
    viewMoveRight.image = [UIImage imageNamed:@"右.png"];
    [self.view addSubview:viewMoveRight];
    
    
    UIView *line = [[UIView alloc]initWithFrame:CGRectMake(520, 425, 400, 15)];
    line.layer.masksToBounds = YES;
    [self.view addSubview:line];
    UIImageView *viewMoveWhenLoad = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 1000, 15)];
    viewMoveWhenLoad.image = [UIImage imageNamed:@"load.png"];
    [line addSubview:viewMoveWhenLoad];
    
    
    [UIView animateWithDuration:15 delay:0 options:UIViewAnimationOptionRepeat|UIViewAnimationOptionCurveLinear animations:^{
        viewMoveUp.center = CGPointMake(self.view.center.x, self.view.center.y * 0.3);
        viewMoveleft.center = CGPointMake(self.view.center.x * 1.3, self.view.center.y);
        viewMoveRight.center = CGPointMake(self.view.center.x * 0.8, self.view.center.y);

    } completion:nil];
    
    [UIView animateWithDuration:5 delay:0 options:UIViewAnimationOptionRepeat|UIViewAnimationOptionCurveLinear animations:^{

        viewMoveWhenLoad.frame = CGRectMake(400 - 1000, 0, 1000, 15);
    } completion:nil];

    
    
    
    
    
    
    

    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)handleButtonLogin:(id)sender {
    
    [self.view removeFromSuperview];
    
    
    
    
    
}













/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
